﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using KVB.Common;
using Customer_Profile.eCard.DBDao;


namespace Customer_Profile.eCard.Agent
{
    public partial class ChangeCardList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BindData(); 
        }

        private void BindData()
        {
            DataSet ds = new DataSet();
            try
            {
                ds = SaleAgentDao.getChangeCardList();

                if (ds != null && ds.Tables.Count > 0)
                {
                    gridChangeCard.DataSource = ds.Tables[0];
                    gridChangeCard.DataBind();
                }
                else
                {
                    gridChangeCard.DataBind();
                }
            }
            catch (Exception ex)
            {
                Log.WriteDefaultLog("operationLogBinddata", ex.ToString());
            }
        }
    }
}